package com.ruoyi.passenger.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.passenger.mapper.TbPassengerForeverBlacklistMapper;
import com.ruoyi.passenger.domain.TbPassengerForeverBlacklist;
import com.ruoyi.passenger.service.ITbPassengerForeverBlacklistService;

/**
 * 手机号永久黑名单Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-18
 */
@Service
public class TbPassengerForeverBlacklistServiceImpl implements ITbPassengerForeverBlacklistService 
{
    @Autowired
    private TbPassengerForeverBlacklistMapper tbPassengerForeverBlacklistMapper;

    /**
     * 查询手机号永久黑名单
     * 
     * @param tempId 手机号永久黑名单主键
     * @return 手机号永久黑名单
     */
    @Override
    public TbPassengerForeverBlacklist selectTbPassengerForeverBlacklistByTempId(Long tempId)
    {
        return tbPassengerForeverBlacklistMapper.selectTbPassengerForeverBlacklistByTempId(tempId);
    }

    /**
     * 查询手机号永久黑名单列表
     * 
     * @param tbPassengerForeverBlacklist 手机号永久黑名单
     * @return 手机号永久黑名单
     */
    @Override
    public List<TbPassengerForeverBlacklist> selectTbPassengerForeverBlacklistList(TbPassengerForeverBlacklist tbPassengerForeverBlacklist)
    {
        return tbPassengerForeverBlacklistMapper.selectTbPassengerForeverBlacklistList(tbPassengerForeverBlacklist);
    }

    /**
     * 新增手机号永久黑名单
     * 
     * @param tbPassengerForeverBlacklist 手机号永久黑名单
     * @return 结果
     */
    @Override
    public int insertTbPassengerForeverBlacklist(TbPassengerForeverBlacklist tbPassengerForeverBlacklist)
    {
        tbPassengerForeverBlacklist.setCreateTime(DateUtils.getNowDate());
        return tbPassengerForeverBlacklistMapper.insertTbPassengerForeverBlacklist(tbPassengerForeverBlacklist);
    }

    /**
     * 修改手机号永久黑名单
     * 
     * @param tbPassengerForeverBlacklist 手机号永久黑名单
     * @return 结果
     */
    @Override
    public int updateTbPassengerForeverBlacklist(TbPassengerForeverBlacklist tbPassengerForeverBlacklist)
    {
        return tbPassengerForeverBlacklistMapper.updateTbPassengerForeverBlacklist(tbPassengerForeverBlacklist);
    }

    /**
     * 批量删除手机号永久黑名单
     * 
     * @param tempIds 需要删除的手机号永久黑名单主键
     * @return 结果
     */
    @Override
    public int deleteTbPassengerForeverBlacklistByTempIds(Long[] tempIds)
    {
        return tbPassengerForeverBlacklistMapper.deleteTbPassengerForeverBlacklistByTempIds(tempIds);
    }

    /**
     * 删除手机号永久黑名单信息
     * 
     * @param tempId 手机号永久黑名单主键
     * @return 结果
     */
    @Override
    public int deleteTbPassengerForeverBlacklistByTempId(Long tempId)
    {
        return tbPassengerForeverBlacklistMapper.deleteTbPassengerForeverBlacklistByTempId(tempId);
    }
}
